<%# when you pass a collection into partials, it makes a counter variable available to you. %>
<%# it always takes the form of 'partial_name_counter' %>
<% if article_list_item_counter == 0 %>
	<%# adding the class name first will add a dotted border to the top of the list entry. %>
	<li class = "article_list first">
<% else %>
	<li class = "article_list">
<% end %>
	<%= image_tag(article.image_url, :class => "listImage")%>
	
	<div  class="textindention">
		<h3><%=h article.name %></h3>

		<p class="description"><%= article.description[0, 150] %>...
		<%=link_to "view details", :controller => "store", :action => "detail", :id=>article.id %>
		</p>

		<% form_remote_tag :url=> {:action=>"add_to_cart", :id=>article} do %>
			<%= submit_tag "Add to Cart" %>
		<%end%>
			<p class="price"><%= number_to_euro(article.price) %></p>
	</div>
</li>



